package com.smart.campus.school.mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.smart.campus.school.domain.AttendanceRecord;
import org.springframework.stereotype.Repository;

/**
 * 打卡记录Mapper接口
 * 
 * @author Zhihe.Li
 * @date 2020-10-21
 */
@Repository
public interface AttendanceRecordMapper 
{
    /**
     * 查询打卡记录
     * 
     * @param id 打卡记录ID
     * @return 打卡记录
     */
    public AttendanceRecord selectAttendanceRecordById(Long id);

    /**
     * 查询打卡记录列表
     * 
     * @param attendanceRecord 打卡记录
     * @return 打卡记录集合
     */
    public List<AttendanceRecord> selectAttendanceRecordList(AttendanceRecord attendanceRecord);

    /**
     * 新增打卡记录
     * 
     * @param attendanceRecord 打卡记录
     * @return 结果
     */
    public int insertAttendanceRecord(AttendanceRecord attendanceRecord);

    /**
     * 修改打卡记录
     * 
     * @param attendanceRecord 打卡记录
     * @return 结果
     */
    public int updateAttendanceRecord(AttendanceRecord attendanceRecord);

    /**
     * 删除打卡记录
     * 
     * @param id 打卡记录ID
     * @return 结果
     */
    public int deleteAttendanceRecordById(Long id);

    /**
     * 批量删除打卡记录
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteAttendanceRecordByIds(String[] ids);

    List<AttendanceRecord> selectAttendanceRecordByCardNoCreateDate(Map<String,Object> map );

    List<AttendanceRecord> selectAttendanceRecordByCardNoListCreateDate(Map<String,Object> map );
}
